fadeIn

open fun fadeIn(@NonNull target: View)

Fades in the target View from fully transparent (alpha 0) to fully opaque (alpha 1) using the default duration of {@value #DEFAULT_FADE_DURATION} milliseconds.

Parameters

target

The View to animate. Must not be null.


open fun fadeIn(@NonNull target: View, duration: Long)

Fades in the target View from fully transparent (alpha 0) to fully opaque (alpha 1).

Parameters

target

The View to animate. Must not be null.

duration

The duration of the animation in milliseconds. Must be non-negative.


open fun fadeIn(@NonNull target: View, duration: Long, @Nullable listener: Animator.AnimatorListener)

Fades in the target View from fully transparent (alpha 0) to fully opaque (alpha 1).

Parameters

target

The View to animate. Must not be null.

duration

The duration of the animation in milliseconds. Must be non-negative.

listener

An optional AnimatorListener to receive animation lifecycle events. Can be null.

Throws

if duration is negative.